package com.egg.ylt.adapter;

import android.content.Context;
import android.view.View;

import com.egg.ylt.R;
import com.egg.ylt.Utils.StringUtil;
import com.egg.ylt.pojo.MemberBabyEntity;
import com.yonyou.framework.library.adapter.rv.CommonAdapter;
import com.yonyou.framework.library.adapter.rv.ViewHolder;

/**
 * Created by qiuzhenhuan on 2019/1/19.
 */

public class ADA_BabyList extends CommonAdapter<MemberBabyEntity.ListBean> {

    public ADA_BabyList(Context context) {
        super(context);
    }

    @Override
    protected int itemLayoutId() {
        return R.layout.item_baby_list;
    }

    @Override
    protected void convert(ViewHolder holder, MemberBabyEntity.ListBean listBean, int position) {
        holder.setText(R.id.tv_baby_name, StringUtil.get(listBean.getName()));
        holder.setVisible(R.id.iv_checked,listBean.isChecked());
    }
}
